package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.NursingPlanDto;
import com.zzyl.dto.NursingProjectPlanDto;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NursingPlanMapper {

    Page<List<NursingPlan>> selectByPage(Integer pageNum, Integer pageSize, Integer status, String planName);

    List<NursingPlanVo>  findAll();

    NursingPlanVo selectById(Long id);

    NursingPlanVo selectByName(String planName);

    void insertPlan(NursingPlan nursingPlan);



    void editNursingPlan(NursingPlanDto nursingPlanDto);


    void updateProjectPlans(List<NursingProjectPlanDto> projectPlans);

    void deleteById(Long id);

    void openPlanStatus(@Param("id")Long id,@Param("status") Long status);

    void insertProjectPlan(List<NursingProjectPlanDto> projectPlans);
}

